﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DVSProject.Models.LocationMachineSetModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create Location Machine Set
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create Location Machine Set</h2>
   
   <script type="text/javascript">
       $(document).ready(function () {
           $(".date").datepicker({ dateFormat: 'dd-mm-yy' });
           //getter
           var dateFormat = $(".date").datepicker("option", "dateFormat");
           //setter
           $(".date").datepicker("option", "dateFormat", 'dd-mm-yy');
           $('.date').datepicker();

       });
    </script>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
           <%-- <div class="editor-label">
                <%= Html.LabelFor(model => model.code_no) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.code_no) %>
                <%= Html.ValidationMessageFor(model => model.code_no) %>
            </div>--%>
            
            <div class="editor-label">
              Location Set :
            </div>
            <div class="editor-field">
                 <%=Html.DropDownListFor(model => model.LocationSetCode, Model.LocSetSelect)%>
            </div>
            
            <div class="editor-label">
                Machine :
            </div>
            <div class="editor-field">
                 <%=Html.DropDownListFor(model => model.SerialNo, Model.MachineSelect)%>
            </div>
            <%-- 
                  <div class="editor-label">
                 Start Meter No :
                   </div>
         <div class="editor-field">
                <%= Html.TextBoxFor(model => model.start_meter_no) %>
                <%= Html.ValidationMessageFor(model => model.start_meter_no)%>
            </div>
             <div class="editor-label">
                 Last Meter No :
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.last_meter_no) %>
                <%= Html.ValidationMessageFor(model => model.last_meter_no)%>
            </div>
            <div class="editor-label">
                 Total Meter Value :
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.total_meter_value) %>
                <%= Html.ValidationMessageFor(model => model.total_meter_value) %>
            </div>--%>
           <%--     <div class="editor-label">
                <%= Html.LabelFor(model => model.contract_start_date) %>
            </div>
         <div class="editor-field">
                <%= Html.TextBoxFor(model => model.contract_start_date, new { @class = "date" })%>
                <%= Html.ValidationMessageFor(model => model.contract_start_date)%>
            </div>--%>
            <div class="editor-label">
            Install Date :
            </div>
            <%= Html.TextBoxFor(model => model.contract_start_date, new { @class = "date" })%>
                <%= Html.ValidationMessageFor(model => model.contract_start_date)%>
              <div class="editor-label">
                 Remark :
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.remark) %>
                <%= Html.ValidationMessageFor(model => model.remark)%>
            </div>
            

           <%-- <div class="editor-label">
                <%= Html.LabelFor(model => model.Status) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Status) %>
                <%= Html.ValidationMessageFor(model => model.Status) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.CreateBy) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.CreateBy) %>
                <%= Html.ValidationMessageFor(model => model.CreateBy) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.CreateOn) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.CreateOn) %>
                <%= Html.ValidationMessageFor(model => model.CreateOn) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.UpdateBy) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.UpdateBy) %>
                <%= Html.ValidationMessageFor(model => model.UpdateBy) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.UpdateOn) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.UpdateOn) %>
                <%= Html.ValidationMessageFor(model => model.UpdateOn) %>
            </div>--%>
            
            <p>
                <input class="buttonSummit" type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

